package com.setup.trac.controller;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.setup.trac.util.SQLCondition;

public class FindStoricoByIdTicket implements SQLCondition {

	private String idTicket = null;
	
	public FindStoricoByIdTicket(String idTicket) {
		this.idTicket = idTicket;
	}

	public Criterion create(Object... params) {
		Criterion c = Restrictions.eq("tickets.idTicket", new BigDecimal(idTicket));
		return c;
	}

}
